import request from '@/util/request.js'
export const selectMajorList = function (params = {}) {
  return request.get('/admin/specialized', {
    params,
  })
}

export const deleteMajorList = function (params = {}) {
  return request.delete('/admin/specialized', {
    params,
  })
}

export const insertMajor = function (data = {}) {
  return request.post('/admin/specialized', data)
}

export const updateMajor = function (data = {}) {
  return request.put('/admin/specialized', data)
}
